host_machine.system() == 'linux' or subdir_done()

cargs = ['-DG_LOG_DOMAIN="FuPluginFocalfp"']
plugins += {meson.current_source_dir().split('/')[-1]: true}

plugin_quirks += files('focalfp.quirk')
plugin_builtins += static_library('fu_plugin_focalfp',
  rustgen.process('fu-focalfp.rs'),
  sources: [
    'fu-focalfp-plugin.c',
    'fu-focalfp-firmware.c',
    'fu-focalfp-hid-device.c',
  ],
  include_directories: plugin_incdirs,
  c_args: [
    cargs,
  ],
  link_with: plugin_libs,
  dependencies: plugin_deps,
)
